package cn.edu.scau.cmi.liguanwu.interProgramming;

import java.net.URL;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;

public class Controller {
	@FXML
	private TextField textfield1;
	@FXML
	private TextField textfield2;
	@FXML
	private Button button;
	public void initialize(URL location, ResourceBundle resources) {
	}
	public void onClick(ActionEvent event) {
		Student student1 = new GraduateStudent();
		Student student2 = new UndergraduateStudent();
		textfield1.setText(student1.learning());
		textfield2.setText(student2.learning());
	}
}
